CXXFLAGS=-I.
LDFLAGS=-L/usr/lib

all: Server Client

Server: LDLIBS=-lIce -lIceUtil
Server: Server.o Demo.o
Server.o: Server.cpp Demo.h

Client: LDLIBS=-lIce -lIceUtil
Client: Client.o Demo.o 
Client.o: Client.cpp Demo.h

%.h %.cpp: %.ice
	slice2cpp -I/usr/share/slice $<

clean:
	rm -f *.o Server Client Demo.h Demo.cpp *~
